<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: AudioPlayer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_audio_player-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">AudioPlayer类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>音频播放器，单例类  
 <a href="class_audio_player.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_audio_player_8h_source.html">AudioPlayer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab787422f19de8d7c2921b5c8a4d7b406"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#ab787422f19de8d7c2921b5c8a4d7b406">playAudio</a> (const std::string &amp;id, BaseStatus status, GameObject objName) const</td></tr>
<tr class="memdesc:ab787422f19de8d7c2921b5c8a4d7b406"><td class="mdescLeft">&#160;</td><td class="mdescRight">播放音频  <a href="class_audio_player.html#ab787422f19de8d7c2921b5c8a4d7b406">更多...</a><br /></td></tr>
<tr class="separator:ab787422f19de8d7c2921b5c8a4d7b406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65ebed74e7f2e19c2aa4b78df0295a3a"><td class="memItemLeft" align="right" valign="top"><a id="a65ebed74e7f2e19c2aa4b78df0295a3a" name="a65ebed74e7f2e19c2aa4b78df0295a3a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>playBackgroundAudio</b> () const</td></tr>
<tr class="memdesc:a65ebed74e7f2e19c2aa4b78df0295a3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">播放背景音乐 <br /></td></tr>
<tr class="separator:a65ebed74e7f2e19c2aa4b78df0295a3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b36f8769986e334d83c0fd3ca9eeb25"><td class="memItemLeft" align="right" valign="top"><a id="a4b36f8769986e334d83c0fd3ca9eeb25" name="a4b36f8769986e334d83c0fd3ca9eeb25"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>deleteAudio</b> () const</td></tr>
<tr class="memdesc:a4b36f8769986e334d83c0fd3ca9eeb25"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除所有播放器对象，释放资源 <br /></td></tr>
<tr class="separator:a4b36f8769986e334d83c0fd3ca9eeb25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a303ae6df08146922ef76f9c2cf4e06af"><td class="memItemLeft" align="right" valign="top"><a id="a303ae6df08146922ef76f9c2cf4e06af" name="a303ae6df08146922ef76f9c2cf4e06af"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>pauseAll</b> () const</td></tr>
<tr class="memdesc:a303ae6df08146922ef76f9c2cf4e06af"><td class="mdescLeft">&#160;</td><td class="mdescRight">暂停所有播放器 <br /></td></tr>
<tr class="separator:a303ae6df08146922ef76f9c2cf4e06af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0f7bf31afe2b7ed38c5cc0ed399693a"><td class="memItemLeft" align="right" valign="top"><a id="ae0f7bf31afe2b7ed38c5cc0ed399693a" name="ae0f7bf31afe2b7ed38c5cc0ed399693a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>continueAll</b> () const</td></tr>
<tr class="memdesc:ae0f7bf31afe2b7ed38c5cc0ed399693a"><td class="mdescLeft">&#160;</td><td class="mdescRight">继续所有播放器 <br /></td></tr>
<tr class="separator:ae0f7bf31afe2b7ed38c5cc0ed399693a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a854be71b4810ab7b8776a9adbc5649f1"><td class="memItemLeft" align="right" valign="top"><a id="a854be71b4810ab7b8776a9adbc5649f1" name="a854be71b4810ab7b8776a9adbc5649f1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>VolumeRefresh</b> () const</td></tr>
<tr class="memdesc:a854be71b4810ab7b8776a9adbc5649f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">刷新播放器声音大小 <br /></td></tr>
<tr class="separator:a854be71b4810ab7b8776a9adbc5649f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4093f53525f122c555d5bc9363b6e088"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#a4093f53525f122c555d5bc9363b6e088">getMobVolume</a> () const</td></tr>
<tr class="memdesc:a4093f53525f122c555d5bc9363b6e088"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取怪物音效大小  <a href="class_audio_player.html#a4093f53525f122c555d5bc9363b6e088">更多...</a><br /></td></tr>
<tr class="separator:a4093f53525f122c555d5bc9363b6e088"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad981a0464422a3b733bc7a825b2734f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#ad981a0464422a3b733bc7a825b2734f6">setMobVolume</a> (int mobVolume) const</td></tr>
<tr class="memdesc:ad981a0464422a3b733bc7a825b2734f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置怪物音效大小，自行刷新  <a href="class_audio_player.html#ad981a0464422a3b733bc7a825b2734f6">更多...</a><br /></td></tr>
<tr class="separator:ad981a0464422a3b733bc7a825b2734f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1127f0256e18fe688e0c66fdd0fa7e1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#aa1127f0256e18fe688e0c66fdd0fa7e1">getPlayerVolume</a> () const</td></tr>
<tr class="memdesc:aa1127f0256e18fe688e0c66fdd0fa7e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取玩家音效大小  <a href="class_audio_player.html#aa1127f0256e18fe688e0c66fdd0fa7e1">更多...</a><br /></td></tr>
<tr class="separator:aa1127f0256e18fe688e0c66fdd0fa7e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6c376883a321394c9a3567b591d2a37"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#aa6c376883a321394c9a3567b591d2a37">setPlayerVolume</a> (int playerVolume) const</td></tr>
<tr class="memdesc:aa6c376883a321394c9a3567b591d2a37"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置玩家音效大小，自行刷新  <a href="class_audio_player.html#aa6c376883a321394c9a3567b591d2a37">更多...</a><br /></td></tr>
<tr class="separator:aa6c376883a321394c9a3567b591d2a37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a063d34bad60e44a85d3291e8dbc57165"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#a063d34bad60e44a85d3291e8dbc57165">getBackgroundVolume</a> () const</td></tr>
<tr class="memdesc:a063d34bad60e44a85d3291e8dbc57165"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取bgm音效大小  <a href="class_audio_player.html#a063d34bad60e44a85d3291e8dbc57165">更多...</a><br /></td></tr>
<tr class="separator:a063d34bad60e44a85d3291e8dbc57165"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46775dc89f3e380233124e07e8ca441b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#a46775dc89f3e380233124e07e8ca441b">setBackgroundVolume</a> (int backgroundVolume) const</td></tr>
<tr class="memdesc:a46775dc89f3e380233124e07e8ca441b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置bgm音效大小，自行刷新  <a href="class_audio_player.html#a46775dc89f3e380233124e07e8ca441b">更多...</a><br /></td></tr>
<tr class="separator:a46775dc89f3e380233124e07e8ca441b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac8f361a85cab9488415d4a4a1071005c"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="class_audio_player.html">AudioPlayer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_audio_player.html#ac8f361a85cab9488415d4a4a1071005c">getInstance</a> ()</td></tr>
<tr class="memdesc:ac8f361a85cab9488415d4a4a1071005c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取本类单例  <a href="class_audio_player.html#ac8f361a85cab9488415d4a4a1071005c">更多...</a><br /></td></tr>
<tr class="separator:ac8f361a85cab9488415d4a4a1071005c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >音频播放器，单例类 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a063d34bad60e44a85d3291e8dbc57165" name="a063d34bad60e44a85d3291e8dbc57165"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a063d34bad60e44a85d3291e8dbc57165">&#9670;&nbsp;</a></span>getBackgroundVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AudioPlayer::getBackgroundVolume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取bgm音效大小 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ac8f361a85cab9488415d4a4a1071005c" name="ac8f361a85cab9488415d4a4a1071005c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8f361a85cab9488415d4a4a1071005c">&#9670;&nbsp;</a></span>getInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_audio_player.html">AudioPlayer</a> &amp; AudioPlayer::getInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取本类单例 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a4093f53525f122c555d5bc9363b6e088" name="a4093f53525f122c555d5bc9363b6e088"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4093f53525f122c555d5bc9363b6e088">&#9670;&nbsp;</a></span>getMobVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AudioPlayer::getMobVolume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取怪物音效大小 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aa1127f0256e18fe688e0c66fdd0fa7e1" name="aa1127f0256e18fe688e0c66fdd0fa7e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1127f0256e18fe688e0c66fdd0fa7e1">&#9670;&nbsp;</a></span>getPlayerVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AudioPlayer::getPlayerVolume </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取玩家音效大小 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ab787422f19de8d7c2921b5c8a4d7b406" name="ab787422f19de8d7c2921b5c8a4d7b406"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab787422f19de8d7c2921b5c8a4d7b406">&#9670;&nbsp;</a></span>playAudio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioPlayer::playAudio </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BaseStatus&#160;</td>
          <td class="paramname"><em>status</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GameObject&#160;</td>
          <td class="paramname"><em>objName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>播放音频 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>角色id </td></tr>
    <tr><td class="paramname">status</td><td>角色状态枚举 </td></tr>
    <tr><td class="paramname">objName</td><td>角色类型枚举 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a46775dc89f3e380233124e07e8ca441b" name="a46775dc89f3e380233124e07e8ca441b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46775dc89f3e380233124e07e8ca441b">&#9670;&nbsp;</a></span>setBackgroundVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioPlayer::setBackgroundVolume </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>backgroundVolume</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置bgm音效大小，自行刷新 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mobVolume</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_audio_player_a46775dc89f3e380233124e07e8ca441b_cgraph.png" border="0" usemap="#aclass_audio_player_a46775dc89f3e380233124e07e8ca441b_cgraph" alt=""/></div>
<map name="aclass_audio_player_a46775dc89f3e380233124e07e8ca441b_cgraph" id="aclass_audio_player_a46775dc89f3e380233124e07e8ca441b_cgraph">
<area shape="rect" title="设置bgm音效大小，自行刷新" alt="" coords="5,5,192,47"/>
<area shape="rect" href="class_audio_player.html#a854be71b4810ab7b8776a9adbc5649f1" title="刷新播放器声音大小" alt="" coords="240,13,428,39"/>
</map>
</div>

</div>
</div>
<a id="ad981a0464422a3b733bc7a825b2734f6" name="ad981a0464422a3b733bc7a825b2734f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad981a0464422a3b733bc7a825b2734f6">&#9670;&nbsp;</a></span>setMobVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioPlayer::setMobVolume </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mobVolume</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置怪物音效大小，自行刷新 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mobVolume</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_audio_player_ad981a0464422a3b733bc7a825b2734f6_cgraph.png" border="0" usemap="#aclass_audio_player_ad981a0464422a3b733bc7a825b2734f6_cgraph" alt=""/></div>
<map name="aclass_audio_player_ad981a0464422a3b733bc7a825b2734f6_cgraph" id="aclass_audio_player_ad981a0464422a3b733bc7a825b2734f6_cgraph">
<area shape="rect" title="设置怪物音效大小，自行刷新" alt="" coords="5,5,192,32"/>
<area shape="rect" href="class_audio_player.html#a854be71b4810ab7b8776a9adbc5649f1" title="刷新播放器声音大小" alt="" coords="240,5,428,32"/>
</map>
</div>

</div>
</div>
<a id="aa6c376883a321394c9a3567b591d2a37" name="aa6c376883a321394c9a3567b591d2a37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6c376883a321394c9a3567b591d2a37">&#9670;&nbsp;</a></span>setPlayerVolume()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AudioPlayer::setPlayerVolume </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>playerVolume</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置玩家音效大小，自行刷新 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mobVolume</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_audio_player_aa6c376883a321394c9a3567b591d2a37_cgraph.png" border="0" usemap="#aclass_audio_player_aa6c376883a321394c9a3567b591d2a37_cgraph" alt=""/></div>
<map name="aclass_audio_player_aa6c376883a321394c9a3567b591d2a37_cgraph" id="aclass_audio_player_aa6c376883a321394c9a3567b591d2a37_cgraph">
<area shape="rect" title="设置玩家音效大小，自行刷新" alt="" coords="5,5,204,32"/>
<area shape="rect" href="class_audio_player.html#a854be71b4810ab7b8776a9adbc5649f1" title="刷新播放器声音大小" alt="" coords="252,5,440,32"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Multimedia/<a class="el" href="_audio_player_8h_source.html">AudioPlayer.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Multimedia/AudioPlayer.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
